package com.deer.wms.base.system.service.impl;

import com.deer.wms.base.system.dao.TaskStockMapper;
import com.deer.wms.base.system.model.TaskStock;
import com.deer.wms.base.system.model.TaskStockDto;
import com.deer.wms.base.system.service.TaskStockService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskStockServiceImpl extends AbstractService<TaskStock,Integer> implements TaskStockService {

    @Autowired
    private TaskStockMapper taskStockMapper;

    @Override
    public List<TaskStockDto> findList(TaskStockDto taskStockDto) {
        return taskStockMapper.findList(taskStockDto);
    }

    @Override
    public void updateQuantity(TaskStock taskStock) {
        taskStockMapper.updateQuantity(taskStock);
    }
}
